<?php 
$sauth = 1;
if($_SESSION['loggedIn'] == 0 &&!isset($adminPage))
include('auth.inc.php');
if ($sauth == 1) {
;echo '<h1>AffiliStore Sign-In</h1>
<fieldset>
<legend>Enter your sign-in details</legend>
';
if (isset($_POST['as_error'])) {
echo '<strong style="color:red">You have typed in the wrong username and/or password</strong><br />';
}
;echo '<form action="index.php" method="post" name="adminlogin" id="adLogForm">
<table cellpadding="4" cellspacing="0" border="0">
<tr>
<td>
<label for="aUsername">Username:</label>
</td>
<td>
<input name="as_aduser" type="text" id="aUsername" class="adminInput" />
</td>
</tr>
<tr>
<td>
<label for="aPassword">Password:</label>
</td>
<td>
<input name="as_adpass" type="password" id="aPassword" class="adminInput" />
</td>
</tr>
</table>
<input type="hidden" name="as_login" value="login" />
<input type="hidden" name="as_error" value="error" />
<input name="Sign-In" type="submit" value="Sign-In" class="padSubmit" />
</form>

<br /><br />
<a href="index.php?forgot=1">Forgot Username or Password?</a>
</label>
</fieldset>
';
}

?>